﻿CREATE TRIGGER CommitteeBankAccount_Tracking_Delete
ON [dbo].[CommitteeBankAccount] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.CommitteeBankAccount_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.CommitteeBankAccount_Tracking s JOIN DELETED i
    ON s.CommitteeBankAccountID = i.CommitteeBankAccountID
END











